﻿using System;

namespace DatabaseConnectionExample
{
    class MySqlConnection : DatabaseConnection
    {
        public MySqlConnection(string connectionString, TimeSpan timeout)
            :base(connectionString, timeout)
        { 
        }

        public override void OpenConnection()
        {
            Console.ForegroundColor = ConsoleColor.Cyan;
            Console.WriteLine("Connected to MySQL");
            Console.ForegroundColor = ConsoleColor.White;
        }

        public override void CloseConnection()
        {
            Console.ForegroundColor = ConsoleColor.Cyan;
            Console.WriteLine("Disconnected from MySQL");
            Console.ForegroundColor = ConsoleColor.White;
        }
    }
}